package com.sketch.commom;

/**
 * Created by zq on 2016/11/30.
 */
public enum CodeMsg {

	//----------------------- 系统级状态码
	SUCCESS(0, "SUCCESS"),

	UNAUTHORIZED(401, "无效token"),

	FAIL(500, "系统发生异常，请联系管理员"),

	EXCEPT(503, "通用业务异常码"),

	PARAM_EXCEPT(400, "请求参数异常，请重试");

	private final int code;
	private final String msg;

	CodeMsg(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public String getMsg() {
		return msg;
	}

	public Integer getCode() {
		return code;
	}
}
